package com.lb.websocket.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liubin
 *
 * @author liubin
 * Date: 2018-04-26
 * Time: 上午 10:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User implements Serializable,Cloneable{

    private Long id;

    private String name;

    @Override
    public Object clone() {
        User user = null;
        try {
            user = (User) super.clone();
        }catch (CloneNotSupportedException e){
            e.printStackTrace();
        }
        return  user;
    }
}
